/// 订单轨迹项
class OrderTrackItem {
  final String time;
  final String title;
  final String content;
  final List<String>? images;

  OrderTrackItem({
    required this.time,
    required this.title,
    required this.content,
    this.images,
  });
}

/// 物品信息
class ItemInfo {
  final String name;
  final String description;
  final int quantity;
  final String? image;

  ItemInfo({
    required this.name,
    required this.description,
    required this.quantity,
    this.image,
  });
}

/// 搬运人员信息
class WorkerInfo {
  final String name;
  final String workerId;
  final String phone;
  final String? avatar;

  WorkerInfo({
    required this.name,
    required this.workerId,
    required this.phone,
    this.avatar,
  });
}

/// 订单模型
class Order {
  final String id;
  final String fromAddress;
  final String address;
  final String status;
  final String time;
  final double price;
  final String customerName;
  final String customerPhone;
  final String serviceType;
  final List<String> requirements;
  final double distance;
  final List<OrderTrackItem> tracks;
  final List<ItemInfo> items;
  final List<String> tools;
  final List<WorkerInfo> workers;

  Order({
    required this.id,
    required this.fromAddress,
    required this.address,
    required this.status,
    required this.time,
    required this.price,
    required this.customerName,
    required this.customerPhone,
    required this.serviceType,
    required this.requirements,
    this.distance = 0.0,
    this.tracks = const [],
    this.items = const [],
    this.tools = const [],
    this.workers = const [],
  });
} 